<?php


require_once(t3lib_extMgm::extPath('zlib') . 'class.tx_zlib_abstract_view.php');

class tx_zlib_view extends tx_zlib_abstract_view
{

    /**
     * @param string $viewScript
     * @param string $extension
     * @return string
     */
    public function render($viewScript, $extension = 'phtml')
    {
        $scriptPath = $this->getViewScriptPath($viewScript, $extension);
        ob_start();
        $helper = $this->getHelper();
        include $scriptPath;
        return ob_get_clean();
    }

}


if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zlib/class.tx_zlib_view.php'])	{
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zlib/class.tx_zlib_view.php']);
}
